package com.dxq.oa.pub;

import java.util.ArrayList;
import java.util.List;

public class ResponseData<T> {

    private T obj;


    private String code;

    private List<T> list = new ArrayList<>();

    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public ResponseData(String code, List<T> list){
        this.code=code;
        this.list=list;
    }
    public ResponseData(String code, List<T> list,String msg){
        this.code=code;
        this.list=list;
        this.msg = msg;
    }
    public ResponseData(String code, List<T> list,String msg,T obj){
        this.code=code;
        this.list=list;
        this.msg = msg;
        this.obj = obj;
    }
    public ResponseData(String code, String msg){
        this.code=code;
        this.msg = msg;
    }
    public ResponseData(){}

    public String getCode() {
        return code;
    }

    public List<T> getList() {
        return list;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
